import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/iconfont/iconfont.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { request } from './utils/request'


const app = createApp(App)
app.config.globalProperties.request = request;

// app.use(ElementPlus)
app.use(ElementPlus, {
    locale: zhCn,
  })

app.use(router).mount('#app')
